package com.aspose.cells;

import java.util.Iterator;

public class ShapePath {
   boolean a = false;
   int b = 5;
   boolean c = true;
   long d = 0L;
   long e = 0L;
   private ShapeSegmentPathCollection f = new ShapeSegmentPathCollection();

   public ShapeSegmentPathCollection getPathSegementList() {
      return this.f;
   }

   int a() {
      int var1 = 2 * this.getPathSegementList().getCount();
      if (this.b == 4) {
         var1 += 2;
      }

      if (!this.c) {
         var1 += 2;
      }

      return var1;
   }

   void a(ShapeSegmentPath var1) {
      this.f.a(var1);
   }

   void a(ShapePath var1) {
      this.b = var1.b;
      this.a = var1.a;
      this.d = var1.d;
      this.e = var1.e;
      this.c = var1.c;
      if (var1.f != null) {
         Iterator var2 = var1.f.iterator();

         while(var2.hasNext()) {
            ShapeSegmentPath var3 = (ShapeSegmentPath)var2.next();
            ShapeSegmentPath var4 = new ShapeSegmentPath(var3.getType());
            var4.a(var3);
            this.f.a(var3);
         }
      }

   }
}
